package com.niodata.dp.task.entity;

import java.util.Date;
import java.util.List;

public class TaskExecutionDetail {

  private String taskId;
  private int attempt;
  private Date updateTime;
  private String status;
  private Date submitTime;
  private int projectId;
  private String flow;
  private String nestedId;
  private Date startTime;
  private String id;
  private String project;
  private List<JobExecDetailNode> nodes;
  private String flowId;
  private int execid;

  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public int getAttempt() {
    return attempt;
  }

  public void setAttempt(int attempt) {
    this.attempt = attempt;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public Date getSubmitTime() {
    return submitTime;
  }

  public void setSubmitTime(Date submitTime) {
    this.submitTime = submitTime;
  }

  public int getProjectId() {
    return projectId;
  }

  public void setProjectId(int projectId) {
    this.projectId = projectId;
  }

  public String getFlow() {
    return flow;
  }

  public void setFlow(String flow) {
    this.flow = flow;
  }

  public String getNestedId() {
    return nestedId;
  }

  public void setNestedId(String nestedId) {
    this.nestedId = nestedId;
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getProject() {
    return project;
  }

  public void setProject(String project) {
    this.project = project;
  }

  public List<JobExecDetailNode> getNodes() {
    return nodes;
  }

  public void setNodes(List<JobExecDetailNode> nodes) {
    this.nodes = nodes;
  }

  public String getFlowId() {
    return flowId;
  }

  public void setFlowId(String flowId) {
    this.flowId = flowId;
  }

  public int getExecid() {
    return execid;
  }

  public void setExecid(int execid) {
    this.execid = execid;
  }

  public static class JobExecDetailNode {

    public int attempt;
    public Date startTime;
    public String id;
    public Date updateTime;
    public String status;
    public String type;
    public Date endTime;
    public String[] in;
  }
}
